package com.copm.ifm.servers.sys.task;

import com.copm.ifm.common.redis.RedisUtil;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author tp
 */
@Component
public class RedisTask {
    /**
     * 每天的0点执行一次
     */
    @Scheduled(cron = "0 0 0 * * ?")
    public void printSay() {
        RedisUtil.getInstance().delHash("warning");
    }
}
